package com.magic.smartcity.model.network;

import com.magic.smartcity.beans.NewsCategoryBean;
import com.magic.smartcity.beans.PressBean;
import com.magic.smartcity.beans.TocationBean;

import io.reactivex.rxjava3.core.Observable;
import okhttp3.ResponseBody;
import retrofit2.http.GET;
import retrofit2.http.Query;

public interface NewsService {

    @GET("/prod-api/press/press/list")
    Observable<PressBean> getNewsListBean(@Query("pageSize") String pageSize,
                                          @Query("pageNum") String pageNum,
                                          @Query("type") String type);
    @GET("/prod-api/press/press/list")
    Observable<PressBean> getNewsListBean(@Query("pageSize") String pageSize,
                                          @Query("pageNum") String pageNum);
    @GET("/prod-api/api/park/press/category/list")
    Observable<NewsCategoryBean> getNewsCategoryListBean();

    @GET("/prod-api/api/rotation/list?type=2")
    Observable<TocationBean> getTocationImages();
}
